package com.wsleo.jblog.model.article;

import com.wsleo.jblog.model.BaseModel;
import com.wsleo.jblog.model.common.Status;

/**
 * Article Tree Comment
 */
public class ArticleComment extends BaseModel {

    private static final long serialVersionUID = 1L;
    
    private Long parentId; // parent id
    private Article article;
    private String usr;
    private String email;
    private String link;
    private String ip;
    private String content;
    private Boolean isSend = false;
    private Status status = Status.NORMAL;

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Article getArticle() {
        return article;
    }

    public void setArticle(Article article) {
        this.article = article;
    }

    public String getUsr() {
        return usr;
    }

    public void setUsr(String usr) {
        this.usr = usr;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Boolean getIsSend() {
        return isSend;
    }

    public void setIsSend(Boolean isSend) {
        this.isSend = isSend;
    }

    public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

    @Override
    public String toString() {
        return "ArticleComment [parentId=" + parentId + ", article=" + article
                + ", usr=" + usr + ", email=" + email + ", link=" + link
                + ", ip=" + ip + ", content=" + content + ", isSend=" + isSend
                + ", status=" + status + ", createTime="
                + getCreateTime() + ", lastUpdTime=" + getLastUpdTime()
                + ", lastUpdBy=" + getLastUpdBy() + ", id=" + getId()
                + "]";
    }
}